<ul class="nav top-menu">
				    <!-- inbox dropdown start-->
				    <li id="header_inbox_bar" class="dropdown">
				        <a data-toggle="dropdown" class="dropdown-toggle headerMesA">
				            <i class="icon-envelope-alt"></i>
				            <span class="badge bg-important" id="msg"><if condition="count($msg) gt 0"><?= count($msg); ?></if></span>
				        </a>
				        <ul class="dropdown-menu extended inbox" id="drop">
	        		         <if condition="count($msg) gt 0">
					            <li class="arrowBefore arrowBefore-red">
					                <p class="red">您有<?= count($msg); ?>条站内信未读</p>
					            </li>
					         <else/>
					            <li class="arrowBefore arrowBefore-darkblue">
					                <p class="darkblue">您没有新的站内信可读</p>
					            </li>
					         </if>
					            <?php  foreach($msg as $key=>$val):if($key==4) break;?>
					            <li>
					                <a class="menuMessage" onclick="return deta(this)" href="{:U('Msg/detail',array('id'=>$val['message_id'],'replyid'=>$val['replyid'],'sender'=>$val['sender'],'type'=>$val['type']))}" target="rightContent">
					                    <!-- <span class="photo"><img alt="avatar" src="{$val.img}"></span> -->
					                    <span class="subject">
					                        <span class="from"><i class="glyphicon glyphicon-user mr8"></i>{$val.title|mb_substr=0,4,'utf-8'}</span>
					                        <span class="time">{$val.name}</span>
					                    </span>
					                    <span class="message">
					                       {$val.message|mb_substr=0,7,'utf-8'}
					                    </span>
					                </a>
					            </li>
					            <?php endforeach?>
								<li>
					                <a class="padding10" href="{:U('Msg/msg')}" target='rightContent'><i class="glyphicon glyphicon-comment mr8"></i>查看所有消息</a>
					            </li>
				            
				        </ul>
				    </li>
				</ul>